package com.rephilo.utils;

public class CommonUtils {
    /**
     * 首字母小写工具
     *
     * @param str
     * @return
     */
    public static String lowerCaseFirstLetter(String str) {
        char[] chars = str.toCharArray();
        // 如果是大写字母
        if ('A' <= chars[0] && chars[0] <= 'Z') {
            System.out.println(chars[0] + ":" + (int) (chars[0]));
            // 大写+32是变小写
            chars[0] += 32;
        }
        return String.valueOf(chars);
    }
}
